<% css_classes = @content.settings_value(:css_classes, local_assigns.fetch(:options, {})) %>

<%= alchemy_form_for [:admin, @essence_file] do |f| %>
  <%= f.input :link_text %>
  <%= f.input :title %>
  <%- if css_classes.present? -%>
    <%= f.input :css_class,
      collection: css_classes,
      include_blank: Alchemy.t('None'),
      input_html: {class: 'alchemy_selectbox'} %>
  <%- else -%>
    <%= f.input :css_class,
      label: Alchemy.t(:position_in_text),
      collection: [
        [Alchemy.t(:above), "no_float"],
        [Alchemy.t(:left), "left"],
        [Alchemy.t(:right), "right"]
      ], include_blank: Alchemy.t('Layout default'), input_html: {class: 'alchemy_selectbox'} %>
  <%- end -%>
  <%= f.submit Alchemy.t(:save) %>
<% end %>
